<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="//cdn.bootcss.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="//cdn.bootcss.com/bootstrap/2.3.2/js/bootstrap.min.js"></script></head>
<body>
    <div class="">
        <div class="">
            Level 1 of column
            <div id="div">
                <input type="text" id="txt"/>
            </div>
            <button class="btn btn-primary" onclick="fun1()">2</button>
        </div>
        <form action="/user/importFile" method="post">
            <input type="file">
            <input type="submit" value="提交" />
        </form>
    </div>
</body>
<script>
    function fun1(){
        alert("sb");
        $.ajax({
            type:"get",
            url:"../menu/get",
            dataType:"json",
            async:true,
            success:function(data) {
                $("#txt").attr("value",data[0].m_cn);
//                for(var i=0;i<data.length;i++){
//                    alert(data[i].m_url);
//                }
            }
        });
    }

</script>
</html>